package cn.lingyangwl.agile.food.core.assembly;
import cn.lingyangwl.agile.food.model.entity.GoodsCategory;
import cn.lingyangwl.agile.food.model.rqrs.goods.category.GoodsCategoryResp;
import cn.lingyangwl.agile.food.model.rqrs.goods.category.GoodsCategorySaveReq;
import cn.lingyangwl.agile.food.model.rqrs.goods.category.GoodsCategoryTreeResp;
import cn.lingyangwl.agile.food.model.rqrs.goods.category.GoodsCategoryUpdateReq;
import org.mapstruct.Mapper;

/**
 * 商品分类
 *
 * @author shenguangyang
 */
@Mapper(componentModel = "spring")
public interface GoodsCategoryAssembly {
  GoodsCategoryResp toCategoryResp(GoodsCategory source);
  GoodsCategoryTreeResp toCategoryTreeResp(GoodsCategory source);

  GoodsCategory toCategory(GoodsCategorySaveReq source);
  
  GoodsCategory toCategory(GoodsCategoryUpdateReq source);
}
